import request from '@/utils/request'

export function selTask(data) {
  return request({
    url: '/plan_task/sel_task',
    method: 'post',
    data
  })
}
export function insertTask(data) {
  return request({
    url: '/plan_task/insert_task',
    method: 'post',
    data
  })
}
export function delTask(data) {
  return request({
    url: '/plan_task/del_task',
    method: 'post',
    data
  })
}
export function editTask(data) {
  return request({
    url: '/plan_task/edit_task',
    method: 'post',
    data
  })
}
export function runStop(data) {
  return request({
    url: '/plan_task/run_stop',
    method: 'post',
    data
  })
}
export function taskRun(data) {
  return request({
    url: '/plan_task/task_run',
    method: 'post',
    data
  })
}

export function selTasklog(data) {
  return request({
    url: '/plan_task/sel_tasklog',
    method: 'post',
    data
  })
}
export function task_upload(data) {
  return request({
    url: '/plan_task/task_upload',
    method: 'post',
    data
  })
}
